package flex.cc.uac.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import flex.cc.base.dto.LoginAuthDto;
import flex.cc.core.annotation.OperationLogDto;
import flex.cc.uac.dto.log.UacLogMainDto;
import flex.cc.uac.entity.UacLogEntity;

/**
 * 日志表
 *
 * @author zhangzk
 * @email zhangzhikai@sinosoft.com.cn
 * @date 2020-06-22 00:09:06
 */
public interface UacLogService extends IService<UacLogEntity> {

    /**
     * 保存日志
     * @param uacLogEntity
     * @param loginAuthDto
     * @return
     */
    boolean saveLog(UacLogEntity uacLogEntity, LoginAuthDto loginAuthDto);


    IPage<UacLogEntity> queryLogListWithPage(UacLogMainDto uacLogMainDto);

    /**
     * 保存操作日志
     * @param operationLogDto
     * @return
     */
    Boolean saveOperationLog(OperationLogDto operationLogDto);
}

